<script setup>
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'
import { useSystemStore } from './stores/system'
const { setEnv } = useSystemStore()
onLaunch(() => {
	document.addEventListener('UniAppJSBridgeReady', function () {
		uni.webView.getEnv(res => {
			setEnv(res)
		})
	})
})

onShow(() => {
	console.log('onShow')
})

onHide(() => {
	console.log('onHide')
})
</script>

<style lang="scss">
/*每个页面公共css */
@import 'uview-plus/index.scss';
@import '@/static/styles/common.scss';
</style>
